]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
environment: Fix runtime crash due to GTK+ change
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Jan 2011 14:42:46 +0000 (15:42 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Jan 2011 15:44:16 +0000 (16:44 +0100)
As Gdk.Device.get_state() does not work properly from Javascript,
we used to block it in the environment. The method now has been
annotated with (skip), causing shell to crash on startup as only
existing methods may be blocked.
Just remove the block in question, as the annotation prevents the
use of that method anyway.

js/ui/environment.js

index 0adf3af6e0d0312dbee3ecef78ec9b1f41879b3a..d6405b3a38218a55c85bc29985e5e344db7e0c4a 100644 (file)
@@ -88,8 +88,6 @@ function init() {
 
     _blockMethod('Clutter.Event.get_state', 'Shell.get_event_state',
                  'gjs\'s handling of Clutter.ModifierType is broken. See bug 597292.');
-    _blockMethod('Gdk.Device.get_state', 'global.get_pointer',
-                 'gjs\'s handling of Gdk.ModifierType is broken. See bug 597292.');
     _blockMethod('Gdk.Window.get_device_position', 'global.get_pointer',
                  'gjs\'s handling of Gdk.ModifierType is broken. See bug 597292.');